package com.zsqat.eshop.order.feign;

import com.zsqat.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("eshop-product")
public interface ProductFeignService {

  /**
   * 根据skuId查询spu的信息
   * @param skuId
   * @return
   */
  @GetMapping(value = "/product/spuinfo/skuId/{skuId}")
  public R getSpuInfoBySkuId(@PathVariable("skuId") Long skuId);
}

